package com.danskin.wechat.dao;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.danskin.wechat.entity.CustOrderPayment;

public interface CustOrderPaymentDao {

	public Integer save(CustOrderPayment custOrderPayment);
	
	/**
	 * 根据ID查询对象
	 * @param Id
	 * @return
	 */
	public CustOrderPayment selectCustOrderPaymentById(Integer primeKey);
	
	/**
	 * 根据查询对象和分页条件，查询平台用户list
	 * @param custOrderPayment
	 * @return
	 */
	public List<CustOrderPayment> selectCustOrderPaymentPageList(@Param("custOrderPayment")CustOrderPayment custOrderPayment, @Param("offset") int offset, @Param("limit") int limit);
	
	/**
	 * 根据查询对象和分页条件，查询平台用户list
	 * @param custOrderPayment
	 * @return
	 */
	public List<CustOrderPayment> selectCustOrderPaymentList(CustOrderPayment custOrderPayment);
	
	/**
	 * 根据查询对象查询总数
	 * @param custOrderPayment
	 * @return
	 */
	public int selectCustOrderPaymentPageCount(CustOrderPayment custOrderPayment);
	
	
	/**
	 * 新增
	 * @param custOrderPayment
	 * @return
	 */
	public int insertSelective(CustOrderPayment custOrderPayment);
	
	
	/**
	 * 更新用户
	 * @param custOrderPayment
	 */
	public int updateByPrimaryKeySelective(CustOrderPayment custOrderPayment);
	
	/**
	 * 根据用户id删除user
	 * @param id
	 */
	public int deleteCustOrderPaymentById(Integer primeKey);
	
	int insertBatch(List<CustOrderPayment> list);
	
}
